package com.d0330;

public class TestNewInstance {
    public static void main(String[] args) {
        Class clazz=Account.class;
        try {
            Account account=(Account)clazz.newInstance();
            System.out.println(account);
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }
}
